﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ZWZ.Web.WebAdmin.Update
{
    public partial class UpdateCat : System.Web.UI.Page
    {
        string ListPage = "/webadmin/cat.aspx";
        string Pid
        {
            get { return Request["pid"]; }
        }
        string Id
        {
            get { return Request["id"]; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //绑定页面参数
                ddl_type.BindEnumDataSource(typeof(ZWZ.Enums.Content.MenuType));
                ddl_NavTarget.BindEnumDataSource(typeof(ZWZ.Enums.Content.NavMode));
                ddl_CtnType.DataSource = Config.ConfigAdapter.SiteDataMgr.Groups["Content_Type"].Groups;
                ddl_CtnType.DataBind();
                if (string.IsNullOrEmpty(Id))
                {
                    //添加栏目
                    Image1.ImageUrl = Config.ConfigAdapter.SiteSettingMgr.Groups["BaseSetting"].Settings["NoImage"].Value;
                    ddl_Status.SelectedIndex = 0;
                }
                else
                {
                    //修改栏目
                }
            }
        }
        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            new Codes.MessageBox(this).NavigateToUrl(ListPage).Send();
        }
        protected void BtnUpload_Click(object sender, EventArgs e)
        {

        }
    }
}